package cn.wzl.tanks.abstractfactory;

import cn.wzl.tanks.ResourceMrg;
import cn.wzl.tanks.TankFrame;
import lombok.Data;

import java.awt.*;

/**
 * @author weiZhiLin
 * @version 1.0
 * @date 2021/6/7 21:19
 */
@Data
public abstract class BaseBoom {

    // 坐标
    protected int x, y;
    // 存活
    protected boolean living = true;
    // 绘图
    protected TankFrame frame;
    // 图片宽高
    public static final int WIDTH = ResourceMrg.BDIMG.getWidth();
    public static final int HEIGHT = ResourceMrg.BDIMG.getHeight();

    // paint
    public void paint(Graphics g) {}
}
